package com.atguigu.conntroller;

import com.atguigu.EnableRobot;
import com.atguigu.service.RobotService;
import com.atguigu.service.RobotService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

@RequestMapping("/robot")
public class MyController {
    @Autowired
    private RobotService robotService;

    @GetMapping("/h01")
    public String h01() {
        String s = robotService.sayHello();
        return s;
    }
}
